from django.urls import path

from .views import HomeView, VideoDetailView, AddComment, SearchVideoView, AddLikes, VideoStream, CartoonView, TvView, \
    AtvView, SearchUserView, GetVideoComment

urlpatterns = [
    path('', HomeView.as_view(), name='home'),
    path('cartoon/', CartoonView.as_view(), name='cartoon'),
    path('tv/', TvView.as_view(), name='tv'),
    path('atv/', AtvView.as_view(), name='atv'),
    path('video/<int:video_id>', VideoDetailView.as_view(), name='video_detail'),
    path('add_comment/', AddComment.as_view(), name='add_comment'),
    path('search_video/', SearchVideoView.as_view(), name='search_video'),
    path('search_user/', SearchUserView.as_view(), name='search_user'),
    path('add_likes/', AddLikes.as_view(), name='add_likes'),
    path('stream_video/<int:id>', VideoStream.as_view(), name='stream_video'),
    path('get_comment/', GetVideoComment.as_view(), name='get_comment')
]
